import request from '@/api/request'
const {sm} = request.config

// 添加活动
export function add(params) {
  return request.get(sm + "/activity/addActivity", params)
}

// 编辑活动
export function update(params) {
  return request.post(sm + "/activity/updateActivity", params)
}

// 删除活动
export function deleteactiveity(params) {
  return request.post(sm + "/activity/deleteActivity", params)
}

//活动列表
export function list(params) {
  return request.get(sm + "/activity/findActivity", params)
}

//查询活动名称
export function findByname(params) {
  return request.post(sm + "/activity/findActivityName", params)
}

//邀请返佣详情
export function findReturnDetail(params) {
  return request.get(sm + "/activity/findReturnDetail", params)
}

//注册送币记录
export function registerGivePoints(params) {
  return request.get(sm + "/activity/registerGivePoints", params)
}
